<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>内部JavaScript</title>
</head>

<body>
  <button onclick="alert('想得美~')">我想暴富</button>
  <!-- 行内JavaScript写法  了解 -->
</body>
</html>